package dream.zyp.ballgame.component;

import android.graphics.Color;

/**
 * Created by ZYP on 2017/3/5.
 * 存储了与小球相关的信息。
 */
public class Ball {
    public float x, y;

    public static float radius = 10;

    private int ballColor;

    public Ball(){
        ballColor = Color.rgb(255,0,0); // 默认红色
    }

    public int getBallColor() {
        return ballColor;
    }

    public void setBallColor(int ballColor) {
        this.ballColor = ballColor;
    }

    public float getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }
}
